package cn.newjava.book.bean.vo;

import cn.newjava.book.bean.Book;
import cn.newjava.book.bean.Borrowing;
import lombok.Data;

import java.util.Date;

@Data
public class BorrowingVo extends Borrowing {
    private Book book;
    private String username;
    private String bookName;

    public String getBookName() {
        return book == null ? null : book.getName();
    }
}
